<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>下面右边</title>
</head>
<body>
    <img src="./image2/Snap1.jpg" id="image" width="80%" height="auto">
    <script>
        var arr=new Array()
        arr[0]="./image2/Snap1.jpg";
        arr[1]="./image2/Snap2.jpg";
        arr[2]="./image2/Snap3.jpg";
        var i=0;
        function image()
        {
            var image=document.getElementById("image");
            image.src=arr[i];
            i++;
            if(i>2)
            {
                i=0;
            }            
        }
        setInterval(function(){
        image();
        },1000);
    </script>
</body>
</html>